<template>
  <div class="t-dialog">
    <div class="t-dialog-content">
      <div class="t-dialog-text"><slot></slot></div>
      <div class="t-dialog-button" @click="handleClick">{{enterText}}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    enterText: String
  },
  methods: {
    handleClick () {
      this.$emit('enter')
    }
  }
}
</script>

<style scoped>
.t-dialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(128, 128, 128, .5);
  z-index: 999;
}

.t-dialog-content {
  position: fixed;
  left: 90px;
  right: 90px;
  top: 470px;
  height: 408px;
  background-color: #ffffff;
  border-radius: 40px;
}

.t-dialog-text {
  padding-top: 60px;
  padding-left: 50px;
  padding-right: 50px;
  text-align: center;
  font-size: 45px;
  line-height: 70px;
  color: #988c98;
  font-family: serif;
  font-weight: 800;
}

.t-dialog-button {
  position: absolute;
  bottom: 30px;
  right: 50px;
  left: 50px;
  height: 120px;
  background: linear-gradient(to bottom, #ffffff, #e5e5e5);
  border: 10px solid #e5e5e5;
  color: #988c98;
  border-radius: 30px;
  line-height: 120px;
  text-align: center;
  font-family: serif;
  font-weight: 900;
  font-size: 50px;
}
</style>
